home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / mmedia / system / ap2 / scripts / x1____i3.p2s < prev    next >
Encoding:
Text File  |  1994-01-04  |  2.4 KB  |  89 lines

  1. # DESCRIPTION:
  2. # --------------------------------------------------------------
  3. #
  4. # Tests device contention from multiple threads
  5. #
  6. # --------------------------------------------------------------
  7. ;
  8. @EVENTS={BREAKPOINT=0}
  9. @THREADS=5
  10. ;
  11. defaultconnection cdxa make type xa stream to ampmix totype amp stream wait
  12. ;
  13. @THREAD 1
  14. @BREAK              A CDXA WILL NEED TO BE IN THE DEFAULT CD-ROM DRIVE
  15. @SET_EVENT BREAKPOINT 1
  16. open cdxa shareable alias cdxa_11 notify
  17. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #1
  18. @WAIT_NOTIFY 1 60000
  19. acquire cdxa_11
  20. @WAIT_PASSDEVICE cdxa_11 60000
  21. close cdxa_11 wait
  22. ;
  23. @REM Test 2: Doesn't need to be active to close it.
  24. open cdxa shareable alias cdxa_12 notify
  25. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #11
  26. @WAIT_NOTIFY 11 60000
  27. close cdxa_12 wait
  28. ;
  29. @THREAD 2
  30. @WAIT_EVENT BREAKPOINT
  31. open cdxa shareable alias cdxa_21 notify
  32. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #2
  33. @WAIT_NOTIFY 2 60000
  34. acquire cdxa_21
  35. @WAIT_PASSDEVICE cdxa_21 60000
  36. close cdxa_21 wait
  37. ;
  38. @REM Test 2: Doesn't need to be active to close it.
  39. open cdxa shareable alias cdxa_22 notify
  40. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #12
  41. @WAIT_NOTIFY 12 60000
  42. close cdxa_22 wait
  43. ;
  44. @THREAD 3
  45. @WAIT_EVENT BREAKPOINT
  46. open cdxa shareable alias cdxa_31 notify
  47. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #3
  48. @WAIT_NOTIFY 3 60000
  49. acquire cdxa_31
  50. @WAIT_PASSDEVICE cdxa_31 60000
  51. close cdxa_31 wait
  52. ;
  53. @REM Test 2: Doesn't need to be active to close it.
  54. open cdxa shareable alias cdxa_32 notify
  55. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #13
  56. @WAIT_NOTIFY 13 60000
  57. close cdxa_32 wait
  58. ;
  59. @THREAD 4
  60. @WAIT_EVENT BREAKPOINT
  61. open cdxa shareable alias cdxa_41 notify
  62. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #4
  63. @WAIT_NOTIFY 4 60000
  64. acquire cdxa_41
  65. @WAIT_PASSDEVICE cdxa_41 60000
  66. close cdxa_41 wait
  67. ;
  68. @REM Test 2: Doesn't need to be active to close it.
  69. open cdxa shareable alias cdxa_42 notify
  70. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #14
  71. @WAIT_NOTIFY 14 60000
  72. close cdxa_42 wait
  73. ;
  74. @THREAD 5
  75. @WAIT_EVENT BREAKPOINT
  76. open cdxa shareable alias cdxa_51 notify
  77. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #5
  78. @WAIT_NOTIFY 5 60000
  79. acquire cdxa_51
  80. @WAIT_PASSDEVICE cdxa_51 60000
  81. close cdxa_51 wait
  82. ;
  83. @REM Test 2: Doesn't need to be active to close it.
  84. open cdxa shareable alias cdxa_52 notify
  85. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #15
  86. @WAIT_NOTIFY 15 60000
  87. close cdxa_52 wait
  88. ;
  89.